<?php
function db_connect(){
	$db=@new mysqli("127.0.0.1","root","","tenmay");
	
	if(mysqli_connect_errno()){
		echo "<font color='red'>connect datebase error!</font><br>\n";
		echo mysqli_connect_error();
		exit;
	}
	$db->query("SET NAMES UTF8");
	return $db;
}
define("PRETABLE","ten_");
?>